<?php
namespace app\port\controller;
use app\port\model\Slideshow;

class Swiper extends Base
{
    public function getAllSlider(){
        $res = Slideshow::where(['status'=>1])->order(["sort"=>"asc"])->select();
        if($res){
<<<<<<< HEAD
            return $this->repuest_json($res,true);
        }else{
            return $this->repuest_json($res);
=======
            return $this->request_json($res,true);
        }else{
            return $this->request_json($res);
>>>>>>> shool
        }
    }

}